package com.sskj.api.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "修改密码请求类")
@Data
public class ModifyPasswordReq {

    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Min(value = 6, message = "新密码最少必须6个字符")
    private String newPassword;
}
